#ifndef SIGPIPEHANDLER_H_
#define SIGPIPEHANDLER_H_

#include "EventHandler.h"

#include <signal.h>
#include <assert.h>
#include <iostream>

class SIGPIPE_Handler : public EventHandler {

public:

	SIGPIPE_Handler() {

	}

	virtual ~SIGPIPE_Handler() {

	}

	virtual int handleSignal ( int signum ) {

		assert ( signum == SIGPIPE );

		std::cout<<getpid()<<"Sig pipe!! en el proceso"<<std::endl;

		return 0;
	};
};

#endif /* SIGPIPEHANDLER_H_ */
